import { post } from '../http'

/** 获取页面参数 */
export const getPageParams = (data: any) => post({ url: '/channelAccount/getEnums', data })

/** 获取OTA列表 */
export const getOtaList = (data: any) => post({ url: '/channelAccount/pageList', data })

/** 保存 */
export const saveOta = (data: any) => post({ url: '/channelAccount/save', data })

/** 创建时账号验证 */
export const verifyAccount = (data: any) => post({ url: '/channelAccount/createLoginVerify', data })

/** 创建时同步账号信息 */
export const syncAccountInfo = (data: any) => post({ url: '/channelAccount/createSyncAccountInfo', data })

/** 停止同步账号信息 */
export const stopSyncAccountInfo = (data: any) => post({ url: '/channelAccount/syncAccountInfoStop', data })

/** 详情 */
export const getOtaDetail = (data: any) => post({ url: '/channelAccount/detail', data })

/** 同步账号信息状态查询 */
export const syncAccountInfoStatus = (data: any) => post({ url: '/channelAccount/syncAccountInfoStatus', data })

/** 渠道门店列表 */
export const getChannelStoreList = (data: any) => post({ url: '/channelAccount/site/list', data })

/** 渠道门店批量保存 */
export const saveChannelStoreBatch = (data: any) => post({ url: '/channelAccount/site/batchSave', data })

/** 渠道门店保存 */
export const saveChannelStore = (data: any) => post({ url: '/channelAccount/site/save', data })

/** 渠道门店删除 */
export const deleteChannelStore = (data: any) => post({ url: '/channelAccount/site/delete', data })

/** 渠道车型列表 */
export const getChannelCarList = (data: any) => post({ url: '/channelAccount/model/list', data })

/** 渠道车型批量保存 */
export const saveChannelCarBatch = (data: any) => post({ url: '/channelAccount/model/batchSave', data })

/** 渠道车型保存 */
export const saveChannelCar = (data: any) => post({ url: '/channelAccount/model/save', data })

/** 渠道车型删除 */
export const deleteChannelCar = (data: any) => post({ url: '/channelAccount/model/delete', data })

/** 渠道车牌列表 */
export const getChannelPlateList = (data: any) => post({ url: '/channelAccount/license/list', data })

/** 渠道车牌批量保存 */
export const saveChannelPlateBatch = (data: any) => post({ url: '/channelAccount/license/batchSave', data })

/** 渠道车牌保存 */
export const saveChannelPlate = (data: any) => post({ url: '/channelAccount/license/save', data })

/** 渠道车牌删除 */
export const deleteChannelPlate = (data: any) => post({ url: '/channelAccount/license/delete', data })

/** 变更状态 */
export const changeStatus = (data: any) => post({ url: '/channelAccount/changeStatus', data })

/** 同步订单 */
export const syncOrder = (data: any) => post({ url: '/channelAccount/syncOta', data })

/** 修改账号密码 */
export const updatePassword = (data: any) => post({ url: '/channelAccount/savePassword', data })

/** 账号验证 */
export const verifyLogin = (data: any) => post({ url: '/channelAccount/loginVerify', data })

/** 账号验证 验证校验短信验证码 */
export const verifySmsCode = (data: any) => post({ url: '/channelAccount/loginVerifySmsCode', data })

/** 同步账号信息 */
export const syncAccount = (data: any) => post({ url: '/channelAccount/syncAccountInfo', data })

/** 修改同步库存状态 */
export const updateSyncStatus = (data: any) => post({ url: '/channelAccount/changeSyncStoreStatus', data })

/** 账号校验终止 */
export const stopVerify = (data: any) => post({ url: '/channelAccount/verifyStop', data })

/** 渠道员工列表 */
export const getChannelStaffList = (data: any) => post({ url: '/channelAccount/staff/list', data })

/** 批量保存员工渠道 */
export const saveChannelStaffBatch = (data: any) => post({ url: '/channelAccount/staff/batchSave', data })

/** 保存员工渠道 */
export const saveChannelStaff = (data: any) => post({ url: '/channelAccount/staff/save', data })

/** 删除员工渠道 */
export const deleteChannelStaff = (data: any) => post({ url: '/channelAccount/staff/delete', data })
